using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Collections;
using System.Collections.Generic;
namespace Kunlun.Models {
	[Table("Orderdetail")]
	public class Orderdetail {
		[Key]
		[DisplayName("订单详细ID")]
		public int ID { get; set; }

		[Required(ErrorMessage = "订单ID不能空")]
		[DisplayName("订单ID")]
		public string OrderID { get; set; }

		[Required(ErrorMessage = "产品ID不能空")]
		[DisplayName("产品ID")]
		public string ProductID { get; set; }

		[Required(ErrorMessage = "产品名称不能空")]
		[DisplayName("产品名称")]
		public string ProductName { get; set; }

		[Required(ErrorMessage = "产品数量不能空")]
		[DisplayName("产品数量")]
		public int Quantity { get; set; }

		[Required(ErrorMessage = "产品单价不能空")]
		[DisplayName("产品单价")]
		public decimal Oneprice { get; set; }

		[DisplayName("开始时间")]
		public DateTime BeginDate { get; set; }

		[DisplayName("订单描述")]
		public string Remark { get; set; }

		public int Types { get; set; }

		public int ItemNumber { get; set; }

		[ForeignKey("OrderID")]
		public virtual Order Order { get; set; }

		[DisplayName("类型ID")]
		public int? ProAttrID { get; set; }

	}
}
